<?php
    
    $ss_id = $_GET['ss_id'];
    $sql = "UPDATE standard_shape SET ss_active=abs(ss_active-1) WHERE ss_id=$ss_id";
    $result = $db->Execute($sql);
    if($result){
        $msg = 'แก้ไขข้อมูลเรียบร้อยแล้ว';
    }else{
        $msg = 'ไม่สามารถแก้ไขข้อมูลได้';
    }
?>

<?php
    include('header.php');
    include('submenu.php');
?>
<div class="grid_18" id="contents">
    <div id="query_result">
    <?php
        echo $msg , ' <img src="images/ajax-loader.gif" />';
        redirect('?m=shape-size',3);
    ?>
    </div>
</div><!-- end .grid_18 -->
<div class="clear">&nbsp;</div>
<?php
    include('footer.php');
?>